package com.system.model.mind;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.system.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 咨询记录
 * </p>
 *
 * @author system
 * @since 2024-02-26
 */
@Data
@ApiModel(description = "咨询记录")
@TableName("consult_record")
public class ConsultRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

//    /**
//     * 主键
//     */
//      @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    /**
     * openid
     */
    @ApiModelProperty(value = "用户id")
    @TableField("applet_user_id")
    private Integer appletUserId;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @TableField("order_number")
    private String orderNumber;

    /**
     * 咨询师id
     */
    @ApiModelProperty(value = "咨询师id")
    @TableField("consultId")
    private Integer consultId;

    /**
     * 支付金额
     */
    @ApiModelProperty(value = "支付金额")
    @TableField("price")
    private BigDecimal price;

    /**
     * 咨询时间
     */
    @ApiModelProperty(value = "咨询时间")
    @TableField("hour")
    private Integer hour;

//    @TableField(exist = false)
//    private Consult consult;

    @ApiModelProperty(value = "拉取支付付款的唯一标识")
    @TableField("prepay_id")
    private String prepayId;

    @TableField(exist = false)
    private String title;

    @TableField(exist = false)
    private String preview;

    @TableField(exist = false)
    private String name;



//    /**
//     * 支付时间
//     */
//    private LocalDate createTime;
//
//    /**
//     * 更新时间
//     */
//    private LocalDate updateTime;


}
